//
//  GAKKINetworkResponseBaseModel.m
//  GANGAIKit
//
//  Created by fh on 2019/11/14.
//  Copyright © 2019 cashchina. All rights reserved.
//

#import "GAKKINetworkResponseBaseModel.h"

NSString *const GAKKIServerErrorDomain = @"GAKKIServerErrorDomainKey";

@implementation GAKKINetworkResponseBaseModel
- (GAKKINetServerStatus)status {
    // 这个需要根据后台返回数据格式和类型修改
    if (!self.originData) {
        return GAKKINetServerStatusFailed;
    }else {
        return GAKKINetServerStatusSuccess;
    }
}
- (GAKKINetServerDataStatus)dataStatus {
    // 这个需要根据后台返回数据格式和类型修改
    if ([self.originData isKindOfClass:[NSDictionary class]]) {
        return GAKKINetServerDataStatusCorrect;
    }else {
        return GAKKINetServerDataStatusWrong;
    }
}
@end
